import './assets/main.scss'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'//引入element-plus
import 'element-plus/dist/index.css'//引入element-plus样式
import persist from 'pinia-plugin-persistedstate'//引入持久化插件

import * as ElementPlusIconsVue from '@element-plus/icons-vue'//引入element-plus图标



const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(ElementPlus)

app.use(createPinia())
app.use(router)

app.mount('#app')
